package com.inews;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;

public class PhoneActivity extends Activity{
	
	private static final String TAG = "PhoneActivity";
	
	private EditText editText;
	private Button button;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.phone);
		
		editText = (EditText) this.findViewById(R.id.mobileEditText);
		button = (Button) this.findViewById(R.id.mobileSumbitBtn);
		button.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				String mobile = PhoneActivity.this.editText.getText().toString();
				Log.i(TAG, mobile);
			}
		});
		
	}

}
